import request from '@/utils/request'
import store from '@/store'

const api = {
  post: (path, data = {}) => {
    const params = data
    return request({
      url: path,
      method: 'post',
      data: params
    })
  },
  get: (path, query) => {
    return request({
      url: path,
      method: 'get',
      params: query
    })
  }
}
export default api



